#ifndef NETWORKCONTROL_H
#define NETWORKCONTROL_H

#include <QObject>
#include <QString>
#include "networkinfo.h" // 需要DeviceType定义

class NetworkControl : public QObject {
    Q_OBJECT
public:
    explicit NetworkControl(QObject *parent = nullptr);

    // 新建连接
    bool addConnection(const QString &devName, DeviceType type, QString *errorMsg = nullptr);
    // 启用设备
    bool enableDevice(const QString &devName, QString *errorMsg = nullptr);
    // 禁用设备
    bool disableDevice(const QString &devName, QString *errorMsg = nullptr);
    // 重命名连接
    bool renameConnection(const QString &oldName, const QString &newName, QString *errorMsg = nullptr);
    // 删除连接
    bool deleteConnection(const QString &conName, QString *errorMsg = nullptr);
};

#endif // NETWORKCONTROL_H 